<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<s:actionerror/>
<s:actionmessage/>
<s:fielderror />
<s:form action="self/edit.do" method="post" id="formObj">
<h1>使用者资讯</h1>
<p><b>登入代码：</b>${username}</p>
<p><b>姓名：</b>${nameNative}</p><s:hidden name="nameNative"/>
<p><b>电子邮件：</b>${email}</p><s:hidden name="email"/>
<p><b>电话：</b>${phone}</p><s:hidden name="phone"/>
<p><b>手机：</b>${mobile}</p><s:hidden name="mobile"/>
<p><b>状态：</b>${userStatus.options[status].name}</p>
<p><b>部门：</b>${group.code}/${group.description}</p>
<p><b>目前角色：</b>
<c:forEach items="${roles}" var="role" varStatus="status">
	<c:if test="${status.index!=0}">,</c:if>
	<c:out value="${role.description}"/>
	<c:if test="${role.type=='MANAGER'}"> 部门管理</c:if>
	<c:if test="${role.type=='GROUP'}"> 部门</c:if>
	<c:if test="${role.type=='CATEGORY'}"> 資料維護</c:if>
	<c:if test="${role.type=='LINEPM'}"> 館線主管</c:if>
</c:forEach>
</p>
<div class="f-link">
	<a href="#" onclick="document.formObj.submit();">修改</a>
	<a href="prepareChangePasswd.do">变更密码</a>
</div>
</s:form>